<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <test-haha></test-haha>
  </div>

  <script src="./vue.js"></script>
  <script>
    new Vue({
      el: '#app',
      data: {},  //数据
      methods: {},  // 方法
      directives: {},  // 指令
      computed:{},  // 计算属性
      watch: {},   // 监听器
      filters: {},  // 过滤器
      components: {  // 组件
        'test-haha': {
          data() {
            return {
              info: '信息'
            }
          },
          template: `<div>我是哈哈组件--{{info}}</div>`
        }
      }
    })
  </script>
</body>
</html>